package com.glela.order.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.glela.order.model.OrderStatus;

public interface OrderStatusMapper {
	
	List<OrderStatus> selectForStatusUserOrderObjectSn(String orderObjectSn);

	int updateOrderStatusSuccess(String orderObjectSn);

	int updateOrderDetailStatusByOrderInfoId(@Param("orderInfoId") long orderInfoId,
			@Param("nextStatus") int nextStatus, @Param("limitStatus") int limitStatus);

	int updateOrderInfoStatusById(@Param("orderInfoId") long orderInfoId,
			@Param("nextStatus") int nextStatus, @Param("limitStatus") int limitStatus);

	int updateOrderObjectStatusById(@Param("orderObjectId") long orderObjectId,
			@Param("nextStatus") int nextStatus, @Param("limitStatus") int limitStatus);

	int updateOrderDetailStatusById(@Param("orderDetailId") long orderDetailId,
			@Param("nextStatus") int nextStatus, @Param("limitStatus") int limitStatus);

	String selectOrderObjectSnByOrderInfoSn(String orderInfoSn);
	
	String selectOrderObjectSnById(long orderObjectId);

}
